{% extends "default.html" %}

{% load i18n %}
{% load jalali_view %}

{% block title %} {% trans "Ad" %}: {{ object.title }} {% endblock %}

{% block page_content %}

{% if error|length > 0 %}
<div style="color: red">{{ error }}</div>
{% endif %}

<h3>{% trans "Ad" %} - {{ object.title }}</h3>

<h5>{% trans "Registration Date" %}</h5>
<span>{% jalali_view object.registration_date %}</span>

<h5>{% trans "Publish Start Date" %}</h5>
<span>{% jalali_view object.start_date %}</span>

<h5>{% trans "Publish End Date" %}</h5>
<span>{% jalali_view object.end_date %}</span>

<h5>{% trans "Description" %}</h5>
<p>{{ object.description }}</p>

<h5>{% trans "Advertizer" %}</h5>
<p>{{ object.advertizer }}</p>

{% ifnotequal None object.url %}
<h5>{% trans "URL Address" %}</h5>
<p><a href="{{ object.url }}" target="_blank">{{ object.url }}</a></p>
{% endifnotequal %}

<h5>{% trans "Tags" %}</h5>
<p>
{{ tags }}
</p>

<h5>{% trans "Discount" %}</h5>
<p>{{ discount }}</p>

<h5>{% trans "Amount" %}</h5>
<p>{{ cost }}</p>

<form action="/ads/register/confirm/" method="post">
{% include "security/recaptcha.html" %}
<p>
<input type="submit" value='{% trans "I Approve" %}'/>
<input type="submit" value='{% trans "I Dont Approve" %}'/>
</p>
</form>

{% endblock page_content %}
